<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

<meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
">
<link href="/public/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
<link rel="stylesheet" href="/public/css/pub.css">

</head>
<body class="bg"> 
<div class="container bar"> 
	<div class="row">
		<div class="cell col-md-3 text-left" style="padding-left:20px;">
			<p>名称名称名称名称</p>
		</div>
		<div class="cell col-md-6 text-right">
			<p>时间</p>
		</div>
	</div>
</div>
<div class="container" id="ready">
	<div class="cell">
        <p>请稍候...</p>
	</div>	
	<div class="clearfix visible-xs-block"></div>
</div>
<div class="pages" id="pages">
	<section class="elem-left build">
		<div class="build_header"></div>
		<div class="build_body"></div>
	</section>
	<section class="elem-left">
		<ul></ul>
	</section>	
	<div class="clearfix visible-xs-block"></div>
</div>
<script src="/public/js/jquery.min.js"></script>
<script src="/public/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/Public/js/pub.js"></script>
<script type="text/javascript">
$(function () {
    resultManager.pubcount={$pubcount};//号码总数
    resultManager.groupsize={$groupsize};//每屏几个号
    resultManager.screen_group_count=2;//每屏显示几组
    resultManager.refresh_sec=6000;//画面跳转时间，单位秒
    resultManager.showallbox=false;//是否显示左侧
    resultManager.indexno="";//控制器序号，更新设置可使js通过ajax读取不同地址的redis数据，仅在交叉摇号活动中使用
    resultManager.fmtfun=function(info){
    	return info.code;//info.code;显示卡号//info.name;显示姓名//info.name;显示身份证号
    };
    //页面标题，可根据项目情况修改名称
	$("#title").html("摇号结果循环公示");
	//每页显示超过40个号时，自动隐藏左侧组号显示部分，留出空间全部显示摇号结果
    if(resultManager.showallbox||resultManager.groupsize*resultManager.screen_group_count>40){
	    $("section.page_left").hide();
	    $("section.page_main").width("100%");
		$("section.page_main ul").css("padding","5px 0 5px 10px");
		$(".cell p").css({"font-size":"20px","padding":"0px","margin":"0"});
		$("#ready").css("height","90vh");
    }
    resultManager.play();
  	//响应按键调速，键盘“上”为加时间，“下”为减时间
    $(document).keydown(function (event) {
    	//按上//按下
    	if(event.keyCode==38){
    		resultManager.refresh_sec+=1000;
    	}
    	else if(event.keyCode==40&&resultManager.refresh_sec>1000){
    		resultManager.refresh_sec-=1000;
    	}else if(event.keyCode==13){
    		resultManager.pause();
    		return;
    	}
        resultManager.play();
        //alert(event.keyCode);
    });
});
</script>

</body>
</html>
